{% extends "::base.html.twig" %}
{% block title %}{{ parent() }} - Groupes{% endblock %}
{% block titre %}{{ parent() }}Modifier le groupe{% endblock %}

{% block body %}
<div class="col_6">
    <form action="{{ path('groupe_update', { 'id': entity.id }) }}" method="post" {{ form_enctype(edit_form) }}>
        <table>
            <tr>
                <td>{{ form_label(edit_form.nom) }} :</td><td>{{ form_widget(edit_form.nom) }}</td>
            </tr>
            <tr>
                <td>{{ form_label(edit_form.description) }} :</td><td>{{ form_widget(edit_form.description) }}</td>
            </tr>
            <tr>
                <td>{{ form_label(edit_form.public) }} :</td><td>{{ form_widget(edit_form.public) }}</td>
            </tr>
        </table>
        <h5>Champs personalisés</h5>
        {{ form_widget(edit_form.page) }}
        <h5>Mots clés</h5>
        {{ form_widget(edit_form.tags) }}
        {{ form_rest(edit_form) }}
        <table>
            <tr>            
                <td class="record_actions">
                    <a href="{{ path('groupe_show', { 'id': entity.id }) }}" class="btn medium blue">
                        <span class="icon small white" data-icon=":"></span> Retour
                    </a>
                </td>
                <td><button type="submit" class="btn medium blue"><span class="icon small white" data-icon="C"></span> Enregistrer</button></td>
            <tr>
        </table>
    </form>
</div>

{% endblock %}
